package com.eastfair.imaster.dto;

import com.eastfair.annotation.base.SubjectTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 收藏表
 * </p>
 *
 * @author liuxiaobai
 * @since 2021-08-31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "CollectionDTO", description = "收藏表")
public class CollectionDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收藏品身份
     */
    @ApiModelProperty(value = "内容类型")
    @NotNull(message = "内容类型不能为空")
    private SubjectTypeEnum subjectType;
    /**
     * 收藏品ID
     */
    @ApiModelProperty(value = "内容ID")
    @NotNull(message = "内容ID不能为空")
    private Long subjectId;


    /**
     * 是否已收藏 true-已收藏 false-未收藏
     */
    private Boolean isCollect;
    /**
     * 收藏数
     */
    private Long num;

}
